using DG.Tweening;
using UnityEngine;

public class C_铜钟 : MonoBehaviour, IBeAttack
{
	public int _铜钟ID;

	public Transform _Tsf_Model;

	private Vector3 _StartPos_Model;

	public AudioClip _AudioC_敲钟;

	private Tween _Tween_震动;

	public int _阵营
	{
		get
		{
			return 2;
		}
		set
		{
			Debug.LogError("??????");
		}
	}

	public Vector2 _BeAttack_Pos
	{
		get
		{
			return Vector2.zero;
		}
		set
		{
			Debug.LogError("??????");
		}
	}

	public float _BeAttack_击退力度
	{
		get
		{
			return 1f;
		}
		set
		{
			Debug.LogError("??????");
		}
	}

	private void Start()
	{
		_StartPos_Model = _Tsf_Model.position;
	}

	public void BeAttack(float atk_生命, float atk_僵直, float atk_击退力度, Vector2 atk_Pos, bool atk_Is远程 = false)
	{
		MonoSingleton<GameManager>.Instance.F_敲钟(_铜钟ID);
		F_震动();
		MonoSingleton<AudioManager>.Instance.F_Play_SFX(_AudioC_敲钟);
	}

	private void F_震动()
	{
		if (_Tween_震动 != null)
		{
			_Tween_震动.Kill();
		}
		Debug.LogError("震动");
		_Tsf_Model.position = _StartPos_Model;
		_Tween_震动 = _Tsf_Model.DOShakePosition(0.5f, 0.2f);
	}
}
